package com.mall.user.api;

import com.mall.user.entity.param.RolePermissionAddParam;
import com.mall.user.entity.param.RolePermissionEditParam;
import com.mall.user.entity.vo.RolePermissionVO;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author wuyijie
 * @description: TODO
 * @date 2021/6/20 22:11
 */
public interface RolePermissionApi {
    int saveBatch(@RequestBody List<RolePermissionAddParam> rolePermissionAddParamList);

    int deleteByRoleId(@RequestParam int userId);

    int updateBatch(@RequestBody List<RolePermissionEditParam> rolePermissionEditParamList);

    List<RolePermissionVO> queryByRoleId(@RequestParam int userId);
}
